<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="header.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Add ProductMultimediaFunc</title>
<script>
	$(document).ready(function(){
	    $("table tbody tr:even").addClass("tdbgcolor1"); 
	    $("table tbody tr:odd").addClass("tdbgcolor2"); 
	});
</script>
</head>
<body>
<script>
	function checkAndSubmit(){
		var form = document.getElementById("addProductMultimediaFuncForm");
		var id = document.getElementById("productMultimediaFuncId");
		if (id.value ==""){
			document.getElementById("productMultimediaFuncId").value = "-1";
		}else 
			form.action="updateProductMultimediaFunc.action";
		form.submit();
	}
</script>
<div align="center">多媒体娱乐功能</div>
<form method="post" action="addProductMultimediaFunc.action" id="addProductMultimediaFuncForm">
<table width="80%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" align="center">
	<tr>
		<td>多媒体:</td>
		<td><input type="text" name="multimedia" id="multimedia"  value="<s:property value='productMultimediaFunc.multimedia'/>" /></td>
	</tr>
	<tr>
		<td>MP3播放器:</td>
		<td><input type="text" name="mp3player" id="mp3player" value="<s:property value='productMultimediaFunc.mp3player'/>" /></td>
	</tr>
	<tr>
		<td>视频播放:</td>
		<td><input type="text" name="videaplayer" id="videaplayer" value="<s:property value='productMultimediaFunc.videaplayer'/>" /></td>
	</tr>
	<tr>
		<td>FM收音机:</td>
		<td><input type="text" name="fmRadio" id="fmRadio" value="<s:property value='productMultimediaFunc.fmRadio'/>" /></td>
	</tr>
	<tr>
		<td>Flash播放:</td>
		<td><input type="text" name="flashplayer" id="flashplayer" value="<s:property value='productMultimediaFunc.flashplayer'/>" /></td>
	</tr>
	<tr>
		<td>流媒体播放:</td>
		<td><input type="text" name="streamingMedia" id="streamingMedia" value="<s:property value='productMultimediaFunc.streamingMedia'/>" /></td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="hidden" value="<s:property value='langId'/>" name="langId" id="langId"/>
			<input type="hidden" value="<s:property value='productId'/>" name="productId" id="productId"/>
			<input type="hidden" value="<s:property value='productMultimediaFunc.id'/>" name="productMultimediaFuncId" id="productMultimediaFuncId"/>
			<input type="button" value="Save"  onclick="checkAndSubmit()"/>&nbsp;
			<input	type="button" value="reset" />&nbsp;
			<input	type="button" value="返回"  onclick="javascript:window.history.back();" />
		</td>
</table>
</form>
</body>
</html>
